file(GLOB SOURCE_LIST  "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")

add_executable(${projectName} ${SOURCE_LIST}
        ../modules/core/include/CodecId.cpp
        ../modules/core/include/CodecId.h
        ../modules/core/include/PixelFormat.h
        ../modules/core/include/DataFrame.h
        ../modules/core/include/Module.cpp
        ../modules/core/include/Module.h)

string(REGEX REPLACE ".*/(.*)" "\\1" CURRENT_FOLDER ${CMAKE_CURRENT_SOURCE_DIR})
message("CURRENT_FOLDER: ${CURRENT_FOLDER}")

target_include_directories(${projectName}
    PUBLIC
   ../plugin
    ${LIBRARY_PATH}
    ${LIBRARY_PATH}/nlohmann
    ${LIBRARY_PATH}/cli
)

target_link_libraries(${projectName}
      PUBLIC
      pthread
      dl
)

target_compile_options(${projectName}
       PRIVATE
       ${flags}
)
